import request from '@/utils/request'

// 查询出入库单据明细列表
export function listStockbillitemlist(query) {
  return request({
    url: '/itemmanage/stockbillitemlist/list',
    method: 'get',
    params: query
  })
}

// 查询出入库单据明细详细
export function getStockbillitemlist(id) {
  return request({
    url: '/itemmanage/stockbillitemlist/' + id,
    method: 'get'
  })
}

// 新增出入库单据明细
export function addStockbillitemlist(data) {
  return request({
    url: '/itemmanage/stockbillitemlist',
    method: 'post',
    data: data
  })
}

// 修改出入库单据明细
export function updateStockbillitemlist(data) {
  return request({
    url: '/itemmanage/stockbillitemlist',
    method: 'put',
    data: data
  })
}

// 删除出入库单据明细
export function delStockbillitemlist(id) {
  return request({
    url: '/itemmanage/stockbillitemlist/' + id,
    method: 'delete'
  })
}



export function addStockBillItem(data) {
  return request({
    url: '/itemmanage/stockbillitemlist/addStockBillItem',
    method: 'put',
    data: data
  })
}
